import {create} from "zustand";

interface IAppState {
    width: number
    setWidth: (width: number) => void
}

const useAppState = create<IAppState>((set) => {
    return {
        width: window.innerWidth,
        setWidth: (width) => {
            set({width})
        },
    }
})

export default useAppState
